/*
 * @Description: 
 * @Author: anqing.liang
 * @Date: 2021-07-19 16:07:55
 * @LastEditTime: 2021-07-21 16:38:52
 * @LastEditors: anqing.liang
 */
import request from 'utils/request';
import { AxiosRequestConfig } from 'axios';
import { getCurrentOrganizationId } from 'utils/utils';
//import Config from '@src/config/config';
const organizationId = getCurrentOrganizationId();
const hwfpPrefix = `/hwfp/v1/${organizationId}`
export function initAxiosConfig(axiosConfig): AxiosRequestConfig {
    return {
        url: `${hwfpPrefix}/approve/history`,
        method: 'get',
        ...axiosConfig,
    }
}
export async function queryData(axiosConfig: AxiosRequestConfig) {
    const { method } = axiosConfig;
    return request(axiosConfig.url, {
        method,
        ...axiosConfig
    })
}